package biz.microplus.information.bean;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * 消息模型
 */
@Entity
public class MessageBean extends BaseBean {
    /**
     * 标识
     */
    @Id
    private int id;
    /**
     * 企业ID
     */
    private int fromId;
    /**
     * 消息发布ID
     */
    private int toId;
    /**
     * 消息内容
     */
    private String content;
    /**
     * 阅读状态
     */
    private String status;
    /**
     * 创建时间戳
     */
    private int createdAt;
    /**
     * 更新时间戳
     */
    private int updatedAt;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getFromId() {
        return fromId;
    }

    public void setFromId(int fromId) {
        this.fromId = fromId;
    }

    public int getToId() {
        return toId;
    }

    public void setToId(int toId) {
        this.toId = toId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public int getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(int createdAt) {
        this.createdAt = createdAt;
    }

    public int getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(int updatedAt) {
        this.updatedAt = updatedAt;
    }
}